<?php
namespace Imi\Model\Event\Param;

use Imi\Event\EventParam;

class AfterSelectEventParam extends EventParam
{
	/**
	 * 查询结果
	 *
	 * @var \Imi\Model\BaseModel[]
	 */
	public $result;

	public function __construct($eventName, $data = [], $target = null)
	{
		$this->eventName = $eventName;
		$this->target = $target;
		$this->data = $data;
		foreach($data as $key => $value)
		{
			$this->$key = &$value;
		}
	}
}